<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <h1>{{msg}}</h1>
    <!--<h2>{{ms}}</h2>-->
    <h2>{{user.name}}</h2>
    <h2>{{user.age}}</h2>
    <h2>{{user.gender}}</h2>
</div>
<div>
    {{ msg }}
</div>
<script src="vue.js"></script>
<script type="text/javascript">
    var vm = new Vue({
        el: '#app',
        data: {
            msg: 'hello Vue!!',
            user: {
                name: 'wmag',
                age: 18
            }
        }
    });
    Vue.set(vm.user,'gender','female')//动态添加响应式数据

</script>
</body>
</html>